package com.lc.utils;

import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.ScopeMetadata;
import org.springframework.context.annotation.ScopeMetadataResolver;

/**
 * Created by lichao on 2017/5/5.
 */
public class WebScopeResolver implements ScopeMetadataResolver {

    public ScopeMetadata resolveScopeMetadata(BeanDefinition beanDefinition) {
        ScopeMetadata metadata = new ScopeMetadata();
        metadata.setScopeName("prototype");
        return metadata;
    }
}
